package com.zrrd.learn.chapter08.proxy;

/**
 * 律师
 *
 * @author asus
 * @version 1.0
 * @date 2023/8/4 8:58
 */
public class LawyerProxy implements  Sayinterface{

    private Defendant defendant;
    public LawyerProxy(Defendant defendant){
        this.defendant=defendant;
    }

    @Override
    public void say(){
        defendant.say();
        System.out.println("从现在开始听我的");

    }




}
